<template>
  <a class="cq-btn-more icon icon-arrow-right" :class="className" href="javascript:;">
  <slot></slot>
  </a>
</template>

<script>
export default {
  name: 'BtnMore',
  props: {// 父组件用的是 <btn-more :className="cqConList">了解更多</btn-more>传过来了一个数组，子组件这边 用一个className来接收数组里的内容
    className: {
        type: Array,
        default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.cq-btn-more {
    box-sizing: border-box; //怪异盒子
    display: inline-block;
    width: 150px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #ff7200;
    border-radius: 20px;
    font-size:  16px;
    color: #ff7200;
    .bgc-white {
      background-color: rgba(255,255,255,0.2);
    }
    &:hover {
      text-decoration: none;
      &:after {// after 就是了解更多后面的那个 >
        transform: translateX(3px);
      }
    }
    &.btn-brand {
      color: #fff;
      border-color: #bac6d4;
      &:after {// after 就是了解更多后面的那个 >
        color: #fff;
      }
    }
    &.toggle-show {
      display: none;
    }
}
</style>
